<?php
/**
 * Created on 7 mai 2011
 *  * @author Samy Deghou(deghou@polytech.unice.fr ; deghou@embl.de)
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 	class Header_Global_View {
		// la classe n'a qu'une fonction qui est getHeader()
		public function getHeader() {
			ob_start();
			// stocke tout ce qui suit "dans une mémoire tampon"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	<head>
		<title>Local chemistry repository for in silico fragmentation</title>
		<link rel="stylesheet" media="screen" type="text/css" title="Design" href="style.css" />
		
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
			<title>Display spectrum demo</title>
			<link rel="stylesheet" href="./JavaScript/specview/css/specview.css" />
			<link rel="stylesheet" href="./JavaScript/specview/css/demo.css" />
			<link rel="stylesheet" href="./JavaScript/specview/specview/style/style.html" />
		
		
	</head>

	<body.class>
		<!-- Balise div permet de structurer le bloc de texte -->
		<div id="wrapper">
			<div id="header">
				<fieldset>
					<legend>Header starts here</header>
				</fieldset>

			</div>
			<div id="menu">
			</div>
			<div id="main">
<?php			
			$head = ob_get_contents();
			ob_end_clean();
			/* on récupère le contenu crée dans un string
			on vide la "mémoire tampon" */
			
			return $head;
			// on renvoie la string
		}
		
	}
	
?>
